package leetcode.string;

import leetcode.string.common.StringUtils;

import java.util.Arrays;

class Solution821 {
    public int[] shortestToChar(String s, char c) {
        return StringUtils.shortestToChar(s, c);
    }
}

public class leetcode821 {
    public static void main(String[] args) {
        Solution821 solution821 = new Solution821();
        System.out.println(Arrays.toString(solution821.shortestToChar("loveleetcode", 'e')));
    }
}
